package com.xyh.flowershop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xyh.flowershop.domain.User;
import com.xyh.flowershop.vo.req.user.UserReqVo;
import com.xyh.flowershop.vo.resp.user.UserRespVo;
import com.xyh.flowershop.vo.resp.user.WxUserRespVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
* @author 10728
* @description 针对表【tb_user】的数据库操作Mapper
* @createDate 2024-04-17 20:13:57
* @Entity com.xyh.flowershop.domain.User
*/
public interface UserMapper extends BaseMapper<User> {

    WxUserRespVo selectByCode(@Param("code") String code, @Param("userId") String userId);

    int checkUserName(String param);

    IPage<UserRespVo> selectUserPage(@Param("vo") UserReqVo vo, @Param("page") IPage<UserRespVo> page);

    @Update("update tb_user set deleted = true where id = #{id}")
    Boolean deleteUser(String id);
}




